﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using DBLibrary;

[DataObject]
public class SpendTypeDB
{
    private DB mDB;
    public SpendTypeDB()
    {
        mDB = PoseidonDBHelper.UserDB;
    }

    [DataObjectMethod(DataObjectMethodType.Select, true)]
    public List<SpendTypeDetail> GetEmployees()
    {
        return mDB.Select<SpendTypeDetail>();
    }

    [DataObjectMethod(DataObjectMethodType.Update, true)]
    public void UpdateEmployees(SpendTypeDetail c)
    {
        mDB.Update(c, "SpendTypeId");
    }

    [DataObjectMethod(DataObjectMethodType.Delete, true)]
    public void DeleteEmployees(SpendTypeDetail c)
    {
        mDB.Delete(c);
    }
}